package com.lcy.weexmodule;

import android.app.Application;

import com.lcy.weexmodule.adapter.ImageAdapter;
import com.lcy.weexmodule.adapter.InterceptWXHttpAdapter;
import com.taobao.weex.InitConfig;
import com.taobao.weex.WXSDKEngine;

public class WxUtils {
    public static void init(Application app) {
        InitConfig config = new InitConfig.Builder()
                //图片库接口
                .setImgAdapter(new ImageAdapter())
                //网络库接口
                .setHttpAdapter(new InterceptWXHttpAdapter())
                .build();
        WXSDKEngine.initialize(app, config);


    }
}
